//
//  UserAgreementController.m
//  OnionHome
//
//  Created by fengjie on 2019/10/10.
//  Copyright © 2019 FengJie. All rights reserved.
//

#import "UserAgreementController.h"

@interface UserAgreementController ()

@end

@implementation UserAgreementController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"葱花用户协议";
    [self createUI];
}
-(void)createUI{
    UIButton * button = [UIButton buttonWithType:UIButtonTypeCustom];
    [button setTitle:@"用户协议" forState:UIControlStateNormal];
    [button setBackgroundImage:[UIImage createImageWithColor:UIColorFromRGB(0x009966)] forState:UIControlStateNormal];
    
    UILabel * label = UILabel.new;
    label.textColor = UIColorFromRGB(0x273323);
    label.font = SYSTEMFONT(16);
    label.text = @"欢迎使用葱花软件及相关服务！";
    
    
    [self.view addSubview:button];
    [self.view addSubview:label];
    
    [button mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.mas_equalTo(0);
        make.top.mas_equalTo(20);
        make.height.mas_equalTo(40);
    }];
    [label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(16);
        make.right.mas_equalTo(0);
        make.top.mas_equalTo(button.mas_bottom).offset(16);
    }];
    

}
@end
